<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>用户登录</title>
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../js/util/easyui/themes/icon.css">

<script type="text/javascript" src="../js/util/easyui/jquery.min.js"></script>
<script type="text/javascript"
	src="../js/util/easyui/jquery.easyui.min.js"></script>

<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<body style="background:url('../images/bg_img1.jpg') no-repeat;width:100%;height:100%;">    
    <div style="margin-top:120px;margin-left:auto;"></div>
    <div align="center">
    <div  class="easyui-panel" title="New Topic" style="width:100%;max-width:400px;padding:30px 60px;">
        <form id="ff" method="post" action="../LoginServlet">
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="username" style="width: 100%"
					data-options="label:'用户名:',required:true">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-passwordbox" name="password"
					style="width: 100%" data-options="label:'密码:',required:true">
			</div>
			<div style="margin-bottom: 20px">
				<input class="easyui-textbox" name="vvcode"
					style="width: 100%, vertical-align:middle"
					data-options="label:'验证码:'"> <img
					src="../ValidateCodeServlet" id="vcode" name="vcode"
					style="vertical-align: middle"> <a href="#"
					onclick="changeCode()">换一张</a>
			</div>
			<div style="margin-bottom: 20px">
				<input type="radio" name="rule" value="1" checked="checked"><span>管理员</span>
				<input type="radio" name="rule" value="2"><span>普通用户</span>
			</div>
			<a href="UserRegister.html" class="easyui-linkbutton"
				style="width: 80px">注册</a> &nbsp;&nbsp;&nbsp;&nbsp;
			<button class="easyui-linkbutton" type="submit" style="width: 80px">登录</button>
		</form>
	</div>
</div>
	<script type="text/javascript">
		function changeCode() {
			document.getElementById("vcode").src = "../ValidateCodeServlet?t="
					+ Math.random();
		}
	</script>
</body>
</html>